<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

	#{mantUISettingsHelper.setShowTitle(showTitle)}
	#{mantUISettingsHelper.setNumElements(numElements)}
	#{personHelper.setSelecting(selecting)}
	#{legalPersonHelper.setSelecting(selecting)}
	<div align="center">
		<h:panelGroup id="title" rendered="#{mantUISettingsHelper.showTitle}">
			<h3>Personas Naturales / Juridicas</h3>
			<br />
			<rich:separator/>
			<br />
		</h:panelGroup>
		<rich:tabPanel width="770px" switchType="client">
			<rich:tab label="Personas Naturales" switchType="ajax">
				<div align="center">
					<rich:toolBar height="25" itemSeparator="line">
						<rich:toolBarGroup>
							<ui:insert name="natPersonTlbMainControls"/>
						</rich:toolBarGroup>
						<rich:toolBarGroup>
							<ui:insert name="natPersonTlbExtraControls"/>
						</rich:toolBarGroup>
					</rich:toolBar>
					
					<br />
					<ui:insert name="natPersonResultGrid"/>
					<br />
					
					<rich:toolBar height="25" itemSeparator="line">
						<rich:toolBarGroup>
							<ui:insert name="natPersonTlbMainControls"/>
						</rich:toolBarGroup>
						<rich:toolBarGroup>
							<ui:insert name="natPersonTlbExtraControls"/>
						</rich:toolBarGroup>
					</rich:toolBar>						
				</div>
			</rich:tab>
			
			<rich:tab label="Personas Juridicas">
				<div align="center">
					<rich:toolBar height="25" itemSeparator="line">
						<rich:toolBarGroup>
							<ui:insert name="legalPersonTlbMainControls"/>
						</rich:toolBarGroup>
						<rich:toolBarGroup>
							<ui:insert name="legalPersonTlbExtraControls"/>
						</rich:toolBarGroup>
					</rich:toolBar>
					
					<ui:insert name="legalPersonResultGrid"/>
					
					<rich:toolBar height="25" itemSeparator="line">
						<rich:toolBarGroup>
							<ui:insert name="legalPersonTlbMainControls"/>
						</rich:toolBarGroup>
						<rich:toolBarGroup>
							<ui:insert name="legalPersonTlbExtraControls"/>
						</rich:toolBarGroup>
					</rich:toolBar>						
				</div>
			</rich:tab>
		</rich:tabPanel>
	</div>
	
	<ui:insert name="natPersonRes"/>
	<ui:insert name="legalPersonRes"/>
</ui:composition>
